package com.base.service.impl;

import com.base.mapper.voipmapper.TbkChoiceActivityMapper;
import com.base.po.tbk.TbkChoiceActivity;
import com.base.po.tbk.TbkChoiceActivityExample;
import com.base.service.TbkChoiceActivityService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("tbkChoiceActivityService")
public class TbkChoiceActivityServiceImpl implements TbkChoiceActivityService {
	
	@Autowired
	private TbkChoiceActivityMapper tbkChoiceActivityMapper;

	@Override
	public int countByExample(TbkChoiceActivityExample example) {
		return tbkChoiceActivityMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(TbkChoiceActivityExample example) {
		return tbkChoiceActivityMapper.deleteByExample(example);
	}

	@Override
	public int insert(TbkChoiceActivity record) {
		return tbkChoiceActivityMapper.insert(record);
	}

	@Override
	public int insertSelective(TbkChoiceActivity record) {
		return tbkChoiceActivityMapper.insertSelective(record);
	}

	@Override
	public List<TbkChoiceActivity> selectAll(Page page, String parentid) {
		return tbkChoiceActivityMapper.selectAll(page, parentid);
	}

	@Override
	public List<TbkChoiceActivity> selectByExample(TbkChoiceActivityExample example) {
		return tbkChoiceActivityMapper.selectByExample(example);
	}

	@Override
	public TbkChoiceActivity selectByPrimaryKey(String id) {
		return tbkChoiceActivityMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(TbkChoiceActivity record, TbkChoiceActivityExample example) {
		return tbkChoiceActivityMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(TbkChoiceActivity record, TbkChoiceActivityExample example) {
		return tbkChoiceActivityMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(TbkChoiceActivity record) {
		return tbkChoiceActivityMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int countAll(String parentid) {
		return tbkChoiceActivityMapper.countAll(parentid);
	}
}
